package com.xja.seckill.order;

import com.xja.seckill.order.ProductCilentApi;
import com.xja.seckill.order.commons.JsonBean;
import org.springframework.stereotype.Component;

@Component
public class ProductHystrix implements ProductCilentApi {
    @Override
    public JsonBean getProductById(Integer id) {
        return new JsonBean(0,"服务降级",null);
    }

    @Override
    public JsonBean reducerStock(Integer productId) {
        return new JsonBean(0,"服务降级",null);
    }
}
